﻿
using System;

namespace QuaManSys
{
    public partial class WebForm1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        protected void Button1_Click(object sender, EventArgs e)
        {

            //实例化Service 对象
            localhost.Password ms = new localhost.Password();
            //获取用户名和密码
            string user = TextBox1.Text.ToString();
            string pwd = TextBox2.Text.ToString();

            bool loginOrNot = ms.CheckPassword(user, pwd);
            if (loginOrNot)
            {               
                Response.Redirect("~/Login.aspx?employeeId=" + user);
            }
            else
            {
                Label3.Text = "不好意思，出错了";
            }
        }
    }
}